/**
 * Created with IntelliJ IDEA.
 * Description:
 * 测试
 * User: xwl
 * Date: 2023-05-31
 * Time: 22:21
 */
public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.insert(12);
        binarySearchTree.insert(23);
        binarySearchTree.insert(56);
        binarySearchTree.insert(4);
        binarySearchTree.insert(7);
        binarySearchTree.insert(11);
        //
        binarySearchTree.inorder(binarySearchTree.root);
        binarySearchTree.delete(binarySearchTree.root,4);
        System.out.println();
        binarySearchTree.inorder(binarySearchTree.root);
    }
}
